#include "generatepoints.h"
#include <ctime>
#include <boost/random/uniform_real.hpp>
#include <boost/random/variate_generator.hpp>
#include <boost/random/linear_congruential.hpp>


Points random_points(point_t min, point_t max)
{
    typedef boost::variate_generator<boost::minstd_rand &, boost::uniform_real<> > random_num_t;

    boost::minstd_rand generator(42u);
    generator.seed(static_cast<unsigned int>(std::time(0)));

    random_num_t get_x(generator, boost::uniform_real<> (min.x, max.x));
    random_num_t get_y(generator, boost::uniform_real<> (min.y, max.y));

    Points points;
    for(size_t i = 0; i < 200000; ++i)
    {
        point_t point(get_x(), get_y());
        points.push_back(point);
    }
    return points;
}
